import random

f = open('Program.py')

lines = []
for line in f:
    lines.append(line)

print 'Lines in the source list: ' + str(len(lines))

randomList = []
for i in range (0, len(lines)):
    randomNumber = random.randint(0, (len(lines) - 1))
    line = lines[randomNumber]
    randomList.append(line)
    lines.remove(line)
    
print 'Lines in the randomized list: ' + str(len(randomList))
    
for line in randomList:
    print line




